package ar.diegodob.charcas.ui.modules.client;

import ar.diegodob.charcas.model.exceptions.CharcasException;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

@RemoteServiceRelativePath("PlayerService")
public interface PlayerService extends RemoteService {

	public static class Util {

		public static PlayerServiceAsync getInstance() {

			return GWT.create(PlayerService.class);
		}
	}
	
	public void play(String name) throws Exception;
	public void stop() throws Exception;

}
